package com.foreknow.demo2;

public class Dog extends Pet{

    public void catchFly() {
        System.out.println("狗玩的游戏.....");
    }

    @Override
    public void toHospital() {
        //Dog设置健康值
        this.setHealth(60);
        System.out.println("吃药、打针......");
    }
}
